package com.dingreading.cloud.soms.service.impl;

import com.dingreading.cloud.soms.entity.SsMstXcxHomeworkFiles;
import com.dingreading.cloud.soms.entity.table.SsMstXcxHomeworkFilesTableDef;
import com.dingreading.cloud.soms.mapper.SsMstXcxHomeworkFilesMapper;
import com.dingreading.cloud.soms.service.SsMstXcxHomeworkFilesService;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * 小程序课后作业文件表 服务层实现。
 *
 * @author EDY
 * @since 2025-11-03
 */
@Service
public class SsMstSsMstXcxHomeworkFilesServiceImpl extends BaseServiceImpl<SsMstXcxHomeworkFilesMapper, SsMstXcxHomeworkFiles, SsMstXcxHomeworkFilesTableDef> implements SsMstXcxHomeworkFilesService {

    @Override
    protected SsMstXcxHomeworkFilesTableDef getTable() {
        return SsMstXcxHomeworkFilesTableDef.ssMstXcxHomeworkFiles;
    }

    @Override
    public List<SsMstXcxHomeworkFiles> getByHomeworkUidList(List<String> homeworkUidList) {
        return getMapper().selectListByCondition(table.homeworkUid.in(homeworkUidList));
    }
}
